package dpatterns.decorator.pizzashop.toppings.impl;

import dpatterns.decorator.pizzashop.pizzas.Pizza;
import dpatterns.decorator.pizzashop.toppings.ToppingDecorator;

public class Pepperoni extends ToppingDecorator {
	
	public Pepperoni(Pizza newPizza) {
		super(newPizza);
		System.out.println("Adding Pepperoni.");
	}
	
	public String getDescription() {
		return tempPizza.getDescription()+", Pepperoni";
	}

	public double getPrice() {
		return tempPizza.getPrice()+1.75;
	}

}
